package com.founder.gateway.system.thread;

import org.setu.framework.core.log.SetuLog;
import org.setu.framework.utils.UuidHelper;

/**
 * API 网关访问记录日志
 */
public class SetuApiGatewayLog implements SetuLog {
    private String id;
    private String appId;
    private String userId;
    private String userName;
    private String orgCode;
    private String orgName;
    private String startTime;
    private String endTime;
    private String apiSchemeId;
    private String uri;
    private String params;
    private String sql;
    private String remoteIp;
    private String errorCode;
    private String exception;
    private String resultType;
    private String xtLrsj;

    public SetuApiGatewayLog() {
        this.id = UuidHelper.getUUID();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getApiSchemeId() {
        return apiSchemeId;
    }

    public void setApiSchemeId(String apiSchemeId) {
        this.apiSchemeId = apiSchemeId;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getXtLrsj() {
        return xtLrsj;
    }

    public void setXtLrsj(String xtLrsj) {
        this.xtLrsj = xtLrsj;
    }

    @Override
    public void setLogTime(String time) {
        this.startTime = time;
    }

    @Override
    public void setLogEndTime(String endtime) {
        this.endTime = endtime;
    }

    @Override
    public String getShardingFlag() {
        return null;
    }
}
